var pic = prompt("input pic"),
psc = prompt("input psc"),
p = pic * psc;
var a = p < 1000 ? p  :  p *= 0.9; 
 console.log(a);
if (a <= 1200){
	alert("pay success")
}else{
	alert("pay error")
};
